package com.cdh.edu.feign.fallback;

import com.cdh.edu.feign.OssFileService;
import com.cdh.utils.result.Restful;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service("ossFileService")
public class OssFileServiceFallBack implements OssFileService {
    @Override
    public Restful test() {
        log.info("熔断保护");
        return Restful.error();
    }

    @Override
    public Restful removeFileAvatar(String url) {
        log.info("熔断保护:删除讲师头像失败");
        return Restful.error();
    }
}
